import service from "../utils/request";
//列表
export function conpon_list(payload={}){
    return service.get('/conpon',{params:payload})
}
//添加
export function conpon_add(payload={}){
    return service.post('/conpon',payload)
}
//删除
export function conpon_del(payload={}){
    return service.delete('/conpon/'+payload.id,payload)
}
//停用
export function conpon_xiu(payload={}){
    return service.patch('/conpon/'+payload.id,payload)
}
//查询单个商品
export function conpon_info( payload = {} ){
    return service.get('/conpon/'+payload.id, { params: payload  } );
}
//查询
export function conpon_list4( payload = {} ){
    return service.get('/conpon', { params: payload  } );
}
//编辑
export function conpon_list2( payload = {} ){
    return service.put('/conpon/'+payload.id,  payload  );
}




//shiplist列表
export function shiplist_list(payload={}){
    return service.get('/shiplist',{params:payload})
}
//shiplist添加
export function shiplist_add(payload={}){
    return service.post('/shiplist',payload)
}
//删除
export function shiplist_del(payload={}){
    return service.delete('/shiplist/'+payload.id,payload)
}
//停用
export function shiplist_xiu(payload={}){
    return service.patch('/shiplist/'+payload.id,payload)
}
//查询单个商品
export function shiplist_info( payload = {} ){
    return service.get('/shiplist/'+payload.id, { params: payload  } );
}
export function shiplist_list4( payload = {} ){
    return service.get('/shiplist', { params: payload  } );
}


//gift列表
export function gift_list(payload={}){
    return service.get('/gift',{params:payload})
}
//gift添加
export function gift_add(payload={}){
    return service.post('/gift',payload)
}
//删除
export function gift_del(payload={}){
    return service.delete('/gift/'+payload.id,payload)
}
//停用
export function gift_xiu(payload={}){
    return service.patch('/gift/'+payload.id,payload)
}
//查询单个商品
export function gift_info( payload = {} ){
    return service.get('/gift/'+payload.id, { params: payload  } );
}
export function gift_list4( payload = {} ){
    return service.get('/gift', { params: payload  } );
}
export function gift_list2( payload = {} ){
    return service.put('/gift/'+payload.id,  payload  );
}  


//collage
export function collage_list(payload={}){
    return service.get('/collage',{params:payload})
}
//collage添加
export function collage_add(payload={}){
    return service.post('/collage',payload)
}
//编辑
export function collage_list2( payload = {} ){
    return service.put('/collage/'+payload.id,payload  );
}
//删除
export function collage_del(payload={}){
    return service.delete('/collage/'+payload.id,payload)
}
//停用
export function collage_xiu(payload={}){
    return service.patch('/collage/'+payload.id,payload)
}
//查询单个商品
export function collage_info( payload = {} ){
    return service.get('/collage/'+payload.id, { params: payload  } );
}
export function collage_list4( payload = {} ){
    return service.get('/collage', { params: payload  } );
}


//collagegood
export function collagegood_list(payload={}){
    return service.get('/collagegood',{params:payload})
}
//collagegood添加
export function collagegood_add(payload={}){
    return service.post('/collagegood',payload)
}
//删除
export function collagegood_del(payload={}){
    return service.delete('/collagegood/'+payload.id,payload)
}



//package
export function package_list(payload={}){
    return service.get('/package',{params:payload})
}
//package添加
export function package_add(payload={}){
    return service.post('/package',payload)
}
//删除
export function package_del(payload={}){
    return service.delete('/package/'+payload.id,payload)
}
//停用
export function package_xiu(payload={}){
    return service.patch('/package/'+payload.id,payload)
}
//查询单个商品
export function package_info( payload = {} ){
    return service.get('/package/'+payload.id, { params: payload  } );
}
export function package_list4( payload = {} ){
    return service.get('/package', { params: payload  } );
}


//packagegood
export function packagegood_list(payload={}){
    return service.get('/packagegood',{params:payload})
}
//packagegood添加
export function packagegood_add(payload={}){
    return service.post('/packagegood',payload)
}
//删除
export function packagegood_del(payload={}){
    return service.delete('/packagegood/'+payload.id,payload)
}



//scenario
export function scenario_list(payload={}){
    return service.get('/scenario',{params:payload})
}
//scenario添加
export function scenario_add(payload={}){
    return service.post('/scenario',payload)
}
//删除
export function scenario_del(payload={}){
    return service.delete('/scenario/'+payload.id,payload)
}
//停用
export function scenario_xiu(payload={}){
    return service.patch('/scenario/'+payload.id,payload)
}
//查询单个商品
export function scenario_info( payload = {} ){
    return service.get('/scenario/'+payload.id, { params: payload  } );
}
export function scenario_list4( payload = {} ){
    return service.get('/scenario', { params: payload  } );
}